package com.kly.user.db.dao;

import com.fqgj.common.base.BaseMapper;
import com.kly.user.db.entity.CustomersEntity;

import java.util.List;

public interface CustomersDao extends BaseMapper<CustomersEntity> {

    CustomersEntity getByUserCode(String userCode);

    /**
     * 获取最近一条自然人信息
     */
    CustomersEntity getCustomer(String mobile, String email, String googleAdId);

    /**
     * 获取最自然人信息列表
     */
    List<CustomersEntity> listCustomer(String mobile, String email, String googleAdId);

    /**
     * 添加自然人信息
     */
    CustomersEntity addCustomer(String customerCode, String email, String mobile, String adid, Integer trafficType);

    /**
     * 删除自然人
     */
    Integer removeByCustomer(String customerCode);

}